package com.qf.shopping.dto.carDTO;

import com.qf.shopping.pojo.car.CarModel;

public class CarModelDTO {
    private Long id;

    private Long brandId;

    private String brandName;

    private Long makeId;

    private String makeName;

    private String name;

    public CarModelDTO() {
    }

    public CarModelDTO(CarModel carModel){
        this.id=carModel.getId();
        this.makeId=carModel.getMakeId();
        this.brandName=carModel.getBrandName();
        this.makeId=carModel.getMakeId();
        this.makeName=carModel.getMakeName();
        this.name=carModel.getName();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public Long getMakeId() {
        return makeId;
    }

    public void setMakeId(Long makeId) {
        this.makeId = makeId;
    }

    public String getMakeName() {
        return makeName;
    }

    public void setMakeName(String makeName) {
        this.makeName = makeName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CarModelDTO{" +
                "id=" + id +
                ", brandId=" + brandId +
                ", brandName='" + brandName + '\'' +
                ", makeId=" + makeId +
                ", makeName='" + makeName + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
